"""
@author: Sergiy Tsymbalyuk
"""

from chowa.lib.base import Session
from chowa.model.site import Page

def add_pages(*args):
    for arg in args:
        Session.add(Page(name=arg))
    try:
        Session.commit()
    except:
        pass
